﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:MyControl="clr-namespace:UmlControlLibrary">
    <ControlTemplate x:Key="UmlNoteTemplate">
        <Border Margin="2,2,6,6">
            <Grid >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="10" />
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="15" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="15" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="10" />
                </Grid.RowDefinitions>

                <Rectangle Name="rect1" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" Grid.RowSpan="4" Fill="White" />
                <Rectangle Name="rect2" Grid.Column="2" Grid.Row="1" Grid.RowSpan="3" Fill="White" />

                <Line Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" VerticalAlignment="Top" X2="10" Fill="Black" Stroke="Black" StrokeThickness="1" Stretch="Fill" />
                <Line Grid.Column="0" Grid.Row="0" Grid.RowSpan="4" HorizontalAlignment="Left" Y2="10" Fill="Black" Stroke="Black" StrokeThickness="1" Stretch="Fill" />

                <Polygon Grid.Column="2" Grid.Row="0" Points="0,0 0,1 1,1" Fill="White" Stretch="Fill" Stroke="Black" StrokeThickness="1" />

                <Line Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="3" VerticalAlignment="Bottom" X2="10" Fill="Black" Stroke="Black" Stretch="Fill" />
                <Line Grid.Column="2" Grid.Row="2" Grid.RowSpan="2" HorizontalAlignment="Right" Y2="10" Fill="Black" Stroke="Black" Stretch="Fill" />

                <MyControl:DraggableLabel Name="content" Selectable="False" Multiline="True" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="2" Margin="0,0,5,0" FontStyle="{Binding FontStyle}" />
                <!--TextBox  Name="textBox1" BorderThickness="0" VerticalAlignment="Stretch" TextWrapping="WrapWithOverflow" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" AcceptsReturn="True" AcceptsTab="True" /-->
            </Grid>
        </Border>
    </ControlTemplate>
    
</ResourceDictionary>